import type { User } from "@/types/userTypes";
import request from "@/utils/request";
import type { AxiosResponse } from "axios";

const baseUrl = '/api/users';
export function getUsers(page: number, pageSize: number): Promise<AxiosResponse<User[]>> {
    return request.get(`${baseUrl}?page=${page}&per_page=${pageSize}`);
}
